/*
 * @Author: geyulan yulan.ge@seres.cn
 * @Date: 2025-05-28 17:39:31
 * @LastEditors: geyulan yulan.ge@seres.cn
 * @LastEditTime: 2025-05-28 17:41:14
 * @FilePath: /sports-wechat-c/cloudfunctions/sampleFunction/index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
  const wxContext = cloud.getWXContext()
  return {
    event,
    openid: wxContext.OPENID,
    appid: wxContext.APPID,
    unionid: wxContext.UNIONID,
  }
}
